body{
    margin: 0;
    padding: 0;
    border: 0;
    background: #e7eaed;
    font-family: "微软雅黑";
    /*让body里的所欲元素都可以水平居中,动态居中*/
    text-align: center;
}
.cont_box{
    margin: 3% 5%;
    background: white;
}

.i_head {
    display: flex;
    /*设置排列方式*/
    flex-direction: row;
    /*设置是否自动换行*/
    flex-wrap: wrap;
    /*分配多余空间*/
    /*flex-basis: auto;*/
    /*direction 与 wrap 的混合方式*/
    /*flex-flow: row;*/
    /*等比例缩小*/
    /*flex-shrink: inherit;*/
    /*主轴对齐方式*/
    justify-content: space-between;
    /*交叉轴对齐方式*/
    background: #214861;
    color: white;
}

.i_head div{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-left: 4%;
}

.i_head h3{
    margin-left: 20px;
}
.i_head img{
    display: inline-block;
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}
.i_head ul{
    display: inline-block;
    margin-right: 3%;
    transition: margin-left 2s;
}
.i_head li{
    cursor: pointer;
    position: relative;
    display:inline-block;
    width: 50px;
    text-align: center;
    /*margin: 0px 5px;*/
    padding: 5px 10px;
    font-weight: lighter;
    /*border: white solid 1px;*/
    /*圆角*/
    /*border-radius: 5px;*/
}

/*移动动画*/
.i_head li:hover{
    transition: .3s;
    transition-timing-function: ease-in;
    -moz-transition: .3s;
    padding-top: 2px;
    background: #00263d;
    border-top: white solid 3px;
    -moz-border-top:white solid 3px;
    border-radius:3px;
}
/*图片库主体盒子*/
.i_imgbox{
    /*flex box 布局*/
    /*display: flex;*/
    /*flex-direction: row;*/
    /*flex-wrap: wrap;*/
    /*justify-content: space-evenly;*/
    padding: 10px 25px;
/* grid 网格布局,分列*/
    column-count: 3;
    ;
}

.hide{display: none}
.show{display: block}


/*图库*/
.i_imgbox div{
    position: relative;
    display: inline-block;
    margin: 10px 0px;
    width: 90%;
    padding: 5px;
    /*border: #60615d solid .5px;*/
    /*border-radius: 2px;*/
    /*box-shadow:4px 4px 4px 4px rgba(255,0,255,0.2);*/
    box-shadow: 4px 4px 5px 2px rgba(0,0,0,0.2);
    /*续上过度效果*/
    transition: .5s;
    /* */
    /*animation: img_hover .6s;*/
}

.i_imgbox div:hover{
    animation: img_hover .7s;
    cursor: pointer;
    /*transition: .6s;*/
    width: 92%;
    box-shadow: 4px 4px 5px 2px rgba(0,0,0,0.2);
}
.i_imgbox span {
    position: relative;
    display: inline-block;
    width: 100%;
    color: white;
    background: #214861;
    text-align: center;
    /*z-index: 1;*/
    opacity: .9;
}
.i_img{
    position: relative;
    width: 100%;
    display: inline-block;
    border-radius: 1px;
}

/*显示和隐藏图片的大图*/
.gallery-big-box{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.gallery-view-box{
    position: relative;
    width: 70%;
    margin: auto;
    top: 40px;
}
.gallery-view-imgs{
    width: 100%;
}
.gallery-close-span{
    font-family: "微软雅黑";
    font-weight: 400;
    font-size: 20px;
    color: aliceblue;
    margin-left: 90%;
    margin-top: 10%;
    cursor: pointer;
}

.gallery-close-span:hover{
    font-family: "微软雅黑";
    font-weight: bold;
    color: #00263d;
    margin-left: 90%;
    cursor: pointer;
    transition: .5s;
}

.footer{
    display: block;
    background: rgba(43, 43, 43,1);
    height: 100px;
}

/*动画*/
@keyframes img_hover {
    25% {width:90%;box-shadow: 4px 4px 5px 2px rgba(0,0,0,0.2);
    } to {width: 91%; box-shadow: none}
    75% {width: 90%; box-shadow: none} to {width:92%;box-shadow: 4px 4px 5px 2px rgba(0,0,0,0.2);}
}

/*footer*/
.footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    font-family: 微软雅黑;
}

.footer p{
    width: 200px;
    font-weight: lighter;
}
.footer a{
    margin: 3px 3px;
    padding: 3px 3px;
    width: 100px;
    text-decoration: none;
    color: rgba(249,252,255,0.93);
    border-left: rgba(96,97,93,0.93) solid 1px;
    font-weight: lighter;
}
.footer a:hover{
    color: rgba(96,97,93,0.93);
    font-weight: bolder;
    transition: .3s;
}

/*媒体查询 响应式*/
@media screen and (max-device-width: 600px) {

    .cont_box{
        margin: 0;
        background: white;
    }

    .i_imgbox{
        column-count:1;
        transition: .3s;
    }
    .i_head h3{
        font-size: 25px;
    }
    .i_head ul{
        position: relative;
        /*display: block;*/
        display: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .i_head li{
        margin: 1% 0;
        padding: 1% 8%;
        /*display: none;*/
        display: block;
        cursor: pointer;
        position: relative;
        width: 97%;
        text-align: left;

        font-size: 18.4px;
        font-weight: lighter;
    }

    .i_head li:hover{
        transition: .3s;
        transition-timing-function: ease-in;
        -moz-transition: .3s;
        padding-top: 2px;
        background: #00263d;
        border-top: none;
        -moz-border-top:white solid 3px;
        border-radius:0px;
        font-weight: bolder;
    }


    .i_head div{
        justify-content: space-between;
        width: 100%;
        padding: 5px 3%;
    }

    .i_head img{
        display: inline-block;
        position: relative;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: rgba(249,252,255,0.93) solid 1px;
        transition: all .3s;
    }

    .i_head img:hover{
        cursor: pointer;
        display: inline-block;
        position: relative;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: rgba(249,252,255,0.93) solid 1px;
        box-shadow: 4px 4px 3px 1px rgba(0,0,0,0.3);
    }

    /*显示和隐藏图片的大图*/
    .gallery-big-box{
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.7);
        text-align: center;
        vertical-align: center;
    }
    .gallery-view-box{
        position: relative;
        width: 90%;
        margin: auto;
        top: 27%;
    }

    .gallery-close-span{
        position: absolute;
        display: block;
        font-family: "微软雅黑";
        font-weight: 400;
        font-size: 35px;
        color: aliceblue;
        margin-left: 87%;
        margin-top: 25%;
        cursor: pointer;
    }

    .gallery-close-span:hover{
        display: block;
        font-family: "微软雅黑";
        font-weight: 400;
        font-size: 35px;
        color:rgba(0,38,61,0.93);
        margin-left: 87%;
        margin-top: 25%;
        cursor: pointer;
    }

    .footer p,a{
        font-size: 14px;
    }
}